package com.tycom.simpleapp.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name = "COMPANY")
public class Company {
	@Id
	@Column (name = "POSITION")
	private int position;
	
	@Column (name = "RANK")
	private int rank;
	
	@Column (name = "URL", length = 100)
	private String url;
	
	@Column (name = "NAME", length = 100)
	private String name;
	
	@Column (name = "CITY", length = 30)
	private String city;
	
	@Column (name = "STATE", length = 30)
	private String state;
	
	@Column (name = "INDUSTRY", length = 50)
	private String industry;
	
	@Column (name = "REVENUE", precision = 15, scale = 2)
	private BigDecimal revenue;
	
	@Column (name = "GROWTH", precision = 8, scale = 2)
	private BigDecimal growth;
	
	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public int getRank() {
		return rank;
	}
	
	public void setRank(int rank) {
		this.rank = rank;
	}
	
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getCity() {
		return city;
	}
	
	public void setCity(String city) {
		this.city = city;
	}
	
	public String getState() {
		return state;
	}
	
	public void setState(String state) {
		this.state = state;
	}
	public String getIndustry() {
		return industry;
	}
	
	public void setIndustry(String industry) {
		this.industry = industry;
	}
	public BigDecimal getRevenue() {
		return revenue;
	}
	
	public void setRevenue(BigDecimal revenue) {
		this.revenue = revenue;
	}
	
	public BigDecimal getGrowth() {
		return growth;
	}
	
	public void setGrowth(BigDecimal growth) {
		this.growth = growth;
	}

	@Override
	public String toString() {
		return "Company [rank=" + rank + ", url=" + url + ", name=" + name
				+ ", city=" + city + ", state=" + state + ", industry="
				+ industry + ", revenue=" + revenue + ", growth=" + growth
				+ "]";
	}
	
}
